package com.xl.flinkdemo.entity;


import java.io.Serializable;

public class SensorReading implements Serializable {
    public SensorReading() {
    }

    //id
    public String id;

    //时间
    public Long temp;
    //温度
    public Double sensors;

    public SensorReading(String id, Long timestamp, Double sensors) {
        this.id = id;
        this.temp = timestamp;
        this.sensors = sensors;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getTimestamp() {
        return temp;
    }

    public void setTimestamp(Long timestamp) {
        this.temp = timestamp;
    }

    public Double getSensors() {
        return sensors;
    }

    public void setSensors(Double sensors) {
        this.sensors = sensors;
    }

    @Override
    public String toString() {
        return "SensorReading{" +
                "id='" + id + '\'' +
                ", timestamp=" + temp +
                ", sensors=" + sensors +
                '}';
    }
}
